<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


/**
 * 业务部入口
 */
Route::group( [ 'domain' => 'business.ipoperate.com' ],function (){
    Route::match( [ 'get','post' ],"/",[ 'uses' => 'DepartmentManagement\BusinessManagementController@login' ] );
} );


/**
 * 管理员入口
 */
Route::group( [ 'domain' => 'admin.ipoperate.com' ],function (){
    Route::match( [ 'get','post' ],"/",[ 'uses' => 'Admin\AdminExamineController@login' ] );
} );

/**
 * 项目部入口
 */
Route::group( [ 'domain' => 'project.ipoperate.com' ],function (){
    Route::match( [ 'get','post' ],"/",[ 'uses' => 'DepartmentManagement\ProjectManagementController@login' ] );
} );

/**
 *流程部入口
 */
Route::group( [ 'domain' => 'process.ipoperate.com' ],function (){
    Route::match( [ 'get','post' ],"/",[ 'uses' => 'DepartmentManagement\ProcessManagementController@login' ] );
} );

/**
 *财务部入口
 */
Route::group( [ 'domain' => 'finance.ipoperate.com' ],function (){
    Route::match( [ 'get','post' ],"/",[ 'uses' => 'DepartmentManagement\FinanceManagementController@login' ] );
} );

/**
 *超级管理入口
 */
Route::group( [ 'domain' => 'generaladmin.ipoperate.com' ],function (){
    Route::match( [ 'get','post' ],"/",[ 'uses' => 'Admin\GeneralAdminController@login' ] );
} );


/**
 * 用户入口
 */
Route::get( '/',function (){
    return view( 'user/user/login' );
} );


//Route::get('login', function () {
//    return view('user-manage/login');
//});
Route::get( 'commodity-detail',function (){
    return view( 'commodity-detail' );
} );
Route::get( 'admin-login',function (){
    return view( 'admin/admin-login' );
} );
Route::get( 'admin-index',function (){
    return view( 'admin/admin-index' );
} );
Route::get( 'admin-staff-manage',function (){
    return view( 'admin/admin-staff-manage' );
} );
Route::get( 'admin-trademark-view',function (){
    return view( 'admin/admin-trademark-view' );
} );
Route::get( 'admin-patent-view',function (){
    return view( 'admin/admin-patent-view' );
} );
Route::get( 'admin-copyright-view',function (){
    return view( 'admin/admin-copyright-view' );
} );
Route::get( 'admin-project-view',function (){
    return view( 'admin/admin-project-view' );
} );
Route::get( 'admin-examine-login',function (){
    return view( 'admin-examine/admin-examine-login' );
} );
Route::get( 'admin-examine-index',function (){
    return view( 'admin-examine/admin-examine-index' );
} );
Route::get( 'register-index',function (){
    return view( 'user-manage/register-index' );
} );
Route::get( 'register-account',function (){
    return view( 'user-manage/register-account' );
} );
Route::get( 'register-password',function (){
    return view( 'user-manage/register-password' );
} );
Route::get( 'forget-password',function (){
    return view( 'user-manage/forget-password' );
} );
Route::get( 'forget-reset-pwd',function (){
    return view( 'user-manage/forget-reset-pwd' );
} );
Route::get( 'user-info',function (){
    return view( 'user-manage/user-info' );
} );
Route::get( 'change-password',function (){
    return view( 'user-manage/change-password' );
} );
Route::get( 'user-manage/task',function (){
    return view( 'user-manage/task' );
} );
Route::get( 'user-manage/my_patent',function (){
    return view( 'user-manage/my_patent' );
} );
Route::get( 'user-manage/my_trademark',function (){
    return view( 'user-manage/my_trademark' );
} );
Route::get( 'user-manage/my_copyright',function (){
    return view( 'user-manage/my_copyright' );
} );
Route::get( 'user-manage/my_project',function (){
    return view( 'user-manage/my_project' );
} );
Route::get( 'user-manage/IP_sell',function (){
    return view( 'user-manage/IP_sell' );
} );
Route::get( 'user-manage/IP_purchase',function (){
    return view( 'user-manage/IP_purchase' );
} );
Route::get( 'unbind',function (){
    return view( 'unbind' );
} );
Route::get( 'index_detail',function (){
    return view( 'index_detail' );
} );
Route::get( 'weChat_detail',function (){
    return view( 'weChat_detail' );
} );
//用户模块
Route::group( [ 'prefix' => 'user' ],function (){
    //用户注册模块
    Route::group( [ 'prefix' => 'register' ],function (){
        $userModel = 'User\\';
        $user      = "RegisterController@";
        Route::match( [ 'get','post' ],"register_index",[ 'uses' => $userModel . $user . 'register_index' ] );
        Route::match( [ 'get','post' ],"get_tel_code",[ 'uses' => $userModel . $user . 'get_tel_code' ] );
        Route::match( [ 'get','post' ],"ajaxCheckTel",[ 'uses' => $userModel . $user . 'ajaxCheckTel' ] );
        Route::match( [ 'get','post' ],"ajaxCheckAccount",[ 'uses' => $userModel . $user . 'ajaxCheckAccount' ] );
        Route::match( [ 'get','post' ],"register_account",[ 'uses' => $userModel . $user . 'register_account' ] );
        Route::match( [ 'get','post' ],"register_password",[ 'uses' => $userModel . $user . 'register_password' ] );
        Route::match( [ 'get','post' ],"doRegister",[ 'uses' => $userModel . $user . 'doRegister' ] );
    } );
    //用户忘记密码模块
    Route::group( [ 'prefix' => 'forgetPassword' ],function (){
        $userModel = 'User\\';
        $user      = "forgetPasswordController@";
        Route::match( [ 'get','post' ],"forgetPasswordIndex",[ 'uses' => $userModel . $user . 'forgetPasswordIndex' ] );
        Route::match( [ 'get','post' ],"ajaxCheckTel",[ 'uses' => $userModel . $user . 'ajaxCheckTel' ] );
        Route::match( [ 'get','post' ],"ajaxCheckPwd",[ 'uses' => $userModel . $user . 'ajaxCheckPwd' ] );
        Route::match( [ 'get','post' ],"forgetPasswordReset",[ 'uses' => $userModel . $user . 'forgetPasswordReset' ] );
        Route::match( [ 'get','post' ],"doReset",[ 'uses' => $userModel . $user . 'doReset' ] );
    } );
    //用户信息模块
    Route::group( [ 'prefix' => 'user' ],function (){
        $userModel = 'User\\';
        $user      = "UserController@";
        //登录页面
        Route::match( [ 'get','post' ],"login",[ 'uses' => $userModel . $user . 'login' ] );
        //手机登录页面
        Route::match( [ 'get','post' ],"little_login",[ 'uses' => $userModel . $user . 'little_login' ] );
        //登陆验证码
        Route::match( [ 'get','post' ],'captcha',[ 'uses' => $userModel . $user . 'captcha' ] );
        //登陆验证码进行验证
        Route::match( [ 'get','post' ],'ajaxSubmitCheck',[ 'uses' => $userModel . $user . 'ajaxSubmitCheck' ] );
        //退出逻辑
        Route::match( [ 'get','post' ],"loginOut",[ 'uses' => $userModel . $user . 'loginOut' ] );
        //登录处理逻辑
        Route::match( [ 'post' ],"doLogin",[ 'uses' => $userModel . $user . 'doLogin' ] );
        //修改密码界面
        Route::match( [ 'get','post' ],"changePassword",[ 'uses' => $userModel . $user . 'changePassword' ] );
        //Ajax检查旧密码是否正确
        Route::match( [ 'get','post' ],"checkPwd",[ 'uses' => $userModel . $user . 'checkPwd' ] );
        //修改密码逻辑
        Route::match( [ 'get','post' ],"doChangePassword",[ 'uses' => $userModel . $user . 'doChangePassword' ] );
        //个人中心界面
        Route::match( [ 'get','post' ],"userInfo",[ 'uses' => $userModel . $user . 'userInfo' ] );
        //修改个人信息逻辑
        Route::match( [ 'get','post' ],"doUserInfo",[ 'uses' => $userModel . $user . 'doUserInfo' ] );
    } );
    //用户管理模块
    Route::group( [ 'prefix' => 'work','middleware' => 'login-review' ],function (){
        $userModel = 'User\\';
        $work      = "WorkController@";
        //聚合商标查询入口
        Route::match( [ 'get','post' ],"juheSearchTrademarkList",[ 'uses' => $userModel . $work . 'juheSearchTrademarkList' ] );
        //聚合商标详情查询入口
        Route::match( [ 'get' ],"juheSearchTrademarkDetail",[ 'uses' => $userModel . $work . 'juheSearchTrademarkDetail' ] );
        //聚合专利查询入口
        Route::match( [ 'get','post' ],"juheSearchPatent",[ 'uses' => $userModel . $work . 'juheSearchPatent' ] );
        //聚合专利详情查询入口
        Route::match( [ 'get' ],"juheSearchPatentInfo",[ 'uses' => $userModel . $work . 'juheSearchPatentInfo' ] );
        //用户工作台页面
        Route::match( [ 'get','post' ],"index",[ 'uses' => $userModel . $work . 'index' ] );
        //用户工作台搜索页面
        Route::match( [ 'get','post' ],"indexSearch",[ 'uses' => $userModel . $work . 'indexSearch' ] );
        //用户工作台精确搜索页面
        Route::match( [ 'get','post' ],"certainSearch",[ 'uses' => $userModel . $work . 'certainSearch' ] );
        //用户任务管理页面
        Route::match( [ 'get','post' ],"task",[ 'uses' => $userModel . $work . 'task' ] );
        //用户任务管理搜索页面
        Route::match( [ 'get','post' ],"taskSearch",[ 'uses' => $userModel . $work . 'taskSearch' ] );
        //用户任务管理多条件精确搜索
        Route::match( [ 'get','post' ],"taskCertain",[ 'uses' => $userModel . $work . 'taskCertain' ] );
        //用户增加任务
        Route::match( [ 'get','post' ],"addTask",[ 'uses' => $userModel . $work . 'addTask' ] );
        //获取产品二级分类
        Route::match( [ 'get','post' ],"getSecondType",[ 'uses' => $userModel . $work . 'getSecondType' ] );
        //获取业务员列表
        Route::match( [ 'get','post' ],"getBusiness",[ 'uses' => $userModel . $work . 'getBusiness' ] );
        //我的专利
        Route::match( [ 'get','post' ],"myPatent",[ 'uses' => $userModel . $work . 'myPatent' ] );
        //我的专利
        Route::match( [ 'post' ],"uploadData",[ 'uses' => $userModel . $work . 'uploadData' ] );
        //付款
        Route::match( [ 'get','post' ],"setFund/{id}",[ 'uses' => $userModel . $work . 'setFund' ] );
        //申请取消
        Route::match( [ 'get','post' ],"cancel/{pid}/{id}",[ 'uses' => $userModel . $work . 'cancel' ] );
        //重新申请
        Route::match( [ 'get','post' ],"apply/{pid}/{id}",[ 'uses' => $userModel . $work . 'apply' ] );

        //获取进度


    } );
    //IP管理模块
    Route::group( [ 'prefix' => 'ip','middleware' => 'login-review' ],function (){
        $userModel = 'User\\';
        $ip        = "IPController@";
        //ip购买界面
        Route::match( [ 'get','post' ],"IpPurchase",[ 'uses' => $userModel . $ip . 'IpPurchase' ] );
        //ip购买搜索界面
        Route::match( [ 'get','post' ],"IpPurchaseSearch",[ 'uses' => $userModel . $ip . 'IpPurchaseSearch' ] );
        //ip购买多条件精确搜索界面
        Route::match( [ 'get','post' ],"IpPurchaseCertain",[ 'uses' => $userModel . $ip . 'IpPurchaseCertain' ] );
        //增加ip购买
        Route::match( [ 'get','post' ],"addIpPay",[ 'uses' => $userModel . $ip . 'addIpPay' ] );
        //修改ip购买
        Route::match( [ 'get','post' ],"editIpPay",[ 'uses' => $userModel . $ip . 'editIpPay' ] );
        //修改ip出售
        Route::match( [ 'get','post' ],"editIpSell",[ 'uses' => $userModel . $ip . 'editIpSell' ] );
        //删除ip购买
        Route::match( [ 'get','post' ],"delIpPay/{id}",[ 'uses' => $userModel . $ip . 'delIpPay' ] );
        //ajax获取二级分类
        Route::match( [ 'get','post' ],"getSecondType",[ 'uses' => $userModel . $ip . 'getSecondType' ] );
        //Ajax获取已有IP
        Route::match( [ 'get','post' ],"getDate",[ 'uses' => $userModel . $ip . 'getDate' ] );
        Route::match( [ 'get','post' ],"getSecondDate",[ 'uses' => $userModel . $ip . 'getSecondDate' ] );
        //ip出售界面
        Route::match( [ 'get','post' ],"IpSell",[ 'uses' => $userModel . $ip . 'IpSell' ] );
        //ip出售搜索界面
        Route::match( [ 'get','post' ],"IpSellSearch",[ 'uses' => $userModel . $ip . 'IpSellSearch' ] );
        //ip出售精确搜索界面
        Route::match( [ 'get','post' ],"IpSellCertain",[ 'uses' => $userModel . $ip . 'IpSellCertain' ] );
        //增加已有ip出售
        Route::match( [ 'get','post' ],"addOwnIpSell",[ 'uses' => $userModel . $ip . 'addOwnIpSell' ] );
        //增加已有ip出售方法
        Route::match( [ 'get','post' ],"doAddOwnIpSell",[ 'uses' => $userModel . $ip . 'doAddOwnIpSell' ] );
        //增加未有ip出售
        Route::match( [ 'get','post' ],"addIpSell",[ 'uses' => $userModel . $ip . 'addIpSell' ] );
        //增加未有ip出售方法
        Route::match( [ 'get','post' ],"doAddIpSell",[ 'uses' => $userModel . $ip . 'doAddIpSell' ] );
        //删除IP出售记录
        Route::match( [ 'get','post' ],"delIpSell/{id}",[ 'uses' => $userModel . $ip . 'delIpSell' ] );
    } );
    //我的专利/商标/版权/项目管理模块
    Route::group( [ 'prefix' => 'mine','middleware' => 'login-review' ],function (){
        $userModel = 'User\\';
        $ip        = "MineController@";
        //我的专利界面
        Route::match( [ 'get','post' ],"myPatent",[ 'uses' => $userModel . $ip . 'myPatent' ] );
        //上传资料
        Route::match( [ 'get','post' ],"uploadOfficeFile",[ 'uses' => $userModel . $ip . 'uploadOfficeFile' ] );
        //我的专利搜索界面
        Route::match( [ 'get','post' ],"myPatentSearch",[ 'uses' => $userModel . $ip . 'myPatentSearch' ] );
        //我的专利多条件搜索
        Route::match( [ 'get','post' ],"myPatentCertain",[ 'uses' => $userModel . $ip . 'myPatentCertain' ] );
        //批量添加专利
        Route::match( [ 'post' ],"readPatentExcel",[ 'uses' => $userModel . $ip . 'readPatentExcel' ] );
        //批量添加商标
        Route::match( [ 'r post' ],"readTrademarkExcel",[ 'uses' => $userModel . $ip . 'readTrademarkExcel' ] );
        //批量添加版权
        Route::match( [ 'post' ],"readCopyrightExcel",[ 'uses' => $userModel . $ip . 'readCopyrightExcel' ] );
        //批量添加项目
        Route::match( [ 'post' ],"readProjectExcel",[ 'uses' => $userModel . $ip . 'readProjectExcel' ] );
        //续费操作
        Route::match( [ 'post' ],"renew",[ 'uses' => $userModel . $ip . 'renew' ] );
        //上传报件资料操作
        Route::match( [ 'post' ],"uploadReport",[ 'uses' => $userModel . $ip . 'uploadReport' ] );
        //下载资料
        Route::match( [ 'post' ],"ajxZip",[ 'uses' => $userModel . $ip . 'ajxZip' ] );
        //添加我的专利
        Route::match( [ 'get','post' ],"addMyPatent",[ 'uses' => $userModel . $ip . 'addMyPatent' ] );
        //去掉其他删除接口，统一用删除
        Route::match( [ 'get','post' ],"delProduct/{id}",[ 'uses' => $userModel . $ip . 'delProduct' ] );
        //我的商标界面
        Route::match( [ 'get','post' ],"myTrademark",[ 'uses' => $userModel . $ip . 'myTrademark' ] );
        //用户查看官方文件状态
        Route::match( [ 'get','post' ],"yes",[ 'uses' => $userModel . $ip . 'yes' ] );
        //我的商标搜索界面
        Route::match( [ 'get','post' ],"myTrademarkSearch",[ 'uses' => $userModel . $ip . 'myTrademarkSearch' ] );
       //我的商标多条件精确搜索界面
        Route::match( [ 'get','post' ],"myTrademarkCertain",[ 'uses' => $userModel . $ip . 'myTrademarkCertain' ] );
        //添加我的商标
        Route::match( [ 'get','post' ],"addMyTrademark",[ 'uses' => $userModel . $ip . 'addMyTrademark' ] );
        //删除我的商标
        // Route::match(['get', 'post'], "delMyTrademark/{id}", ['uses' => $userModel . $ip . 'delMyTrademark']);
        //我的版权界面
        Route::match( [ 'get','post' ],"myCopyright",[ 'uses' => $userModel . $ip . 'myCopyright' ] );
        //我的版权搜索界面
        Route::match( [ 'get','post' ],"myCopyrightSearch",[ 'uses' => $userModel . $ip . 'myCopyrightSearch' ] );
       //我的版权多条件搜索
        Route::match( [ 'get','post' ],"myCopyrightCertain",[ 'uses' => $userModel . $ip . 'myCopyrightCertain' ] );
        //添加我的版权
        Route::match( [ 'get','post' ],"addMyCopyright",[ 'uses' => $userModel . $ip . 'addMyCopyright' ] );
        //删除我的版权
        //Route::match(['get', 'post'], "delMyCopyright/{id}", ['uses' => $userModel . $ip . 'delMyCopyright']);
        //我的项目界面
        Route::match( [ 'get','post' ],"myProject",[ 'uses' => $userModel . $ip . 'myProject' ] );
        //我的项目搜索界面
        Route::match( [ 'get','post' ],"myProjectSearch",[ 'uses' => $userModel . $ip . 'myProjectSearch' ] );
        //我的项目多条件搜索
        Route::match( [ 'get','post' ],"myProjectCertain",[ 'uses' => $userModel . $ip . 'myProjectCertain' ] );
        //添加我的项目
        Route::match( [ 'get','post' ],"addMyProject",[ 'uses' => $userModel . $ip . 'addMyProject' ] );
        //删除我的项目
        //Route::match(['get', 'post'], "delMyProject/{id}", ['uses' => $userModel . $ip . 'delMyProject']);
        //申请纸质通知书
        Route::match( [ 'get','post' ],"applyNotice",[ 'uses' => $userModel . $ip . 'applyNotice' ] );
    } );


    Route::group( [ 'prefix' => 'operate' ],function (){
        $userModel = 'User\\';
        $Operate   = "OperateController@";


        Route::match( [ 'get','post' ],"getProjectSchedule",[ 'uses' => $userModel . $Operate . 'getProjectSchedule' ] );

        Route::match( [ 'get','post' ],"getProgressList",[ 'uses' => $userModel . $Operate . 'getProgressList' ] );


    } );


} );


//部门管理员管理模块
Route::group( [ 'prefix' => 'management' ],function (){
    //业务部管理模块
    Route::group( [ 'prefix' => 'business' ],function (){
        $controller = 'DepartmentManagement\BusinessManagementController@';
        //业务部管理员登录页面
        Route::match( [ 'get','post' ],"login",[ 'uses' => $controller . 'login' ] );
        //业务部管理员退出登录
        Route::match( [ 'get','post' ],"loginOut",[ 'uses' => $controller . 'loginOut' ] );
        //业务部管理员登录逻辑
        Route::match( [ 'post' ],"doLogin",[ 'uses' => $controller . 'doLogin' ] );
        //业务部管理员首页
        Route::match( [ 'get','post' ],"index",[ 'uses' => $controller . 'index' ] );
        //业务部管理员首页搜索
        Route::match( [ 'get','post' ],"indexSearch",[ 'uses' => $controller . 'indexSearch' ] );
        //所条件精确搜索
        Route::match( [ 'get','post' ],"indexCertainSearch",[ 'uses' => $controller . 'indexCertainSearch' ] );
        //业务部管理员认领页面
        Route::match( [ 'get','post' ],"claim",[ 'uses' => $controller . 'claim' ] );
        //业务部管理员认领搜索页面
        Route::match( [ 'get','post' ],"claimSearch",[ 'uses' => $controller . 'claimSearch' ] );
        //认领逻辑处理
        Route::match( [ 'get' ],"doClaim/{id}/{pid}",[ 'uses' => $controller . 'doClaim' ] );
        //设置款项
        Route::match( [ 'post' ],"setFund",[ 'uses' => $controller . 'setFund' ] );
        //转接
        Route::match( [ 'get','post' ],"transfer/{id}",[ 'uses' => $controller . 'transfer' ] );
        //申请通知书列表
        Route::match( [ 'get','post' ],"applyNotice",[ 'uses' => $controller . 'applyNotice' ] );
        //申请通知书搜索列表
        Route::match( [ 'get','post' ],"applyNoticeSearch",[ 'uses' => $controller . 'applyNoticeSearch' ] );
        //邮寄处理逻辑
        Route::match( [ 'get','post' ],"doPost",[ 'uses' => $controller . 'doPost' ] );
        //个人中心
        Route::match( [ 'get','post' ],"userInfo",[ 'uses' => $controller . 'userInfo' ] );
        //修改密码
        Route::match( [ 'get','post' ],"changePassword",[ 'uses' => $controller . 'changePassword' ] );
        //修改密码处理逻辑
        Route::match( [ 'get','post' ],"doChangePassword",[ 'uses' => $controller . 'doChangePassword' ] );
        //用户删除业务处理逻辑
        Route::match( [ 'get','post' ],"deletedBusinessByUserSearch",[ 'uses' => $controller . 'deletedBusinessByUserSearch' ] );
        //修改合同编号
        Route::match( [ 'get','post' ],"editContractId",[ 'uses' => $controller . 'editContractId'] );

        //修改密码处理逻辑
        Route::match( [ 'get','post' ],"deletedBusinessByUser",[ 'uses' => $controller . 'deletedBusinessByUser' ] );

        //删除已删除业务处理逻辑
        Route::match( [ 'get','post' ],"deletedBusiness/{id}",[ 'uses' => $controller . 'deletedBusiness' ] );

        //恢复已删除业务处理逻辑
        Route::match( [ 'get','post' ],"recoverDeletedBusiness/{id}",[ 'uses' => $controller . 'recoverDeletedBusiness' ] );
        //ip交易购买
        Route::match( [ 'get','post' ],"IpPurchase",[ 'uses' => $controller . 'IpPurchase' ] );
        //ip交易购买精确查找
        Route::match( [ 'get','post' ],"IpPurchaseCertain",[ 'uses' => $controller . 'IpPurchaseCertain' ] );
        //修改进度
        Route::match( [ 'get','post' ],"editProgress",[ 'uses' => $controller . 'editProgress' ] );

    } );
    //财务部管理模块
    Route::group( [ 'prefix' => 'finance' ],function (){
        $controller = 'DepartmentManagement\FinanceManagementController@';
        //财务部管理员登录页面
        Route::match( [ 'get','post' ],"login",[ 'uses' => $controller . 'login' ] );
        //财务部管理员退出登录
        Route::match( [ 'get','post' ],"loginOut",[ 'uses' => $controller . 'loginOut' ] );
        //财务部管理员登录逻辑
        Route::match( [ 'post' ],"doLogin",[ 'uses' => $controller . 'doLogin' ] );
        //财务部管理员首页
        Route::match( [ 'get','post' ],"index",[ 'uses' => $controller . 'index' ] );
        //财务部管理员首页搜索
        Route::match( [ 'get','post' ],"indexSearch",[ 'uses' => $controller . 'indexSearch' ] );
        //财务部多条件搜索
        Route::match( [ 'get','post' ],"indexCertainSearch",[ 'uses' => $controller . 'indexCertainSearch' ] );
        //财务部管理员首页
        Route::match( [ 'get' ],"operation/{pid}/{id}/{state}",[ 'uses' => $controller . 'operation' ] );
        //财务部个人中心
        Route::match( [ 'get','post' ],"userInfo",[ 'uses' => $controller . 'userInfo' ] );
        //财务部修改密码
        Route::match( [ 'get','post' ],"changePassword",[ 'uses' => $controller . 'changePassword' ] );
        Route::match( [ 'get','post' ],"doChangePassword",[ 'uses' => $controller . 'doChangePassword' ] );
    } );
    //产品详情
    Route::match( [ 'get','post' ],"detail",[ 'uses' => 'DepartmentManagement\BusinessManagementController@detail' ] );
    //流程部
    Route::group( [ 'prefix' => 'process' ],function (){
        $controller = 'DepartmentManagement\ProcessManagementController@';
        //流程部部管理员登录
        Route::match( [ 'get','post' ],"login",[ 'as' => 'management.process.login','uses' => $controller . 'login' ] );
        //登陆逻辑
        Route::match( [ 'get','post' ],"doLogin",[ 'as' => 'management.process.doLogin','uses' => $controller . 'doLogin' ] );
        //退出登录逻辑
        Route::match( [ 'get','post' ],"loginOut",[ 'as' => 'management.process.loginOut','uses' => $controller . 'loginOut' ] );


        //流程部部管理员修改密码逻辑
        Route::match( [ 'get','post' ],"changePassword",[ 'as' => 'management.process.changePassword','uses' => $controller . 'changePassword' ] );

        //流程部部管理员修改密码
        Route::match( [ 'get','post' ],"doChangePassword",[ 'as' => 'management.process.doChangePassword','uses' => $controller . 'doChangePassword' ] );//流程部部管理员修改密码

        //流程部部管理员首页
        Route::match( [ 'get','post' ],"index",[ 'as' => 'management.process.index','uses' => $controller . 'index' ] );
        //流程部部管理员首页搜索
        Route::match( [ 'get','post' ],"indexSearch",[ 'as' => 'management.process.indexSearch','uses' => $controller . 'indexSearch' ] );
        //流程部多条件搜索
        Route::match( [ 'get','post' ],"indexCertainSearch",[ 'as' => 'management.process.indexSearch','uses' => $controller . 'indexCertainSearch' ] );
        //流程部部管理员页面任务中心
        Route::match( [ 'get','post' ],"claimCenter",[ 'as' => 'management.process.claimCenter','uses' => $controller . 'claimCenter' ] );
        //流程部部管理员搜索页面任务中心
        Route::match( [ 'get','post' ],"claimCenterSearch",[ 'as' => 'management.process.claimCenterSearch','uses' => $controller . 'claimCenterSearch' ] );
        //流程部部管理员用户信息
        Route::match( [ 'get','post' ],"userInfo",[ 'as' => 'management.process.userInfo','uses' => $controller . 'userInfo' ] );//流程部部管理员用户信息

        //流程部部管理员认领任务
        Route::match( [ 'get','post' ],"toClaim",[ 'as' => 'management.process.toClaim','uses' => $controller . 'toClaim' ] );//流程部部管理员用户信息

        //流程部部管理员更新进度
        Route::match( [ 'get','post' ],"updateProgress",[ 'as' => 'management.process.updateProgress','uses' => $controller . 'updateProgress' ] );//流程部部管理员用户信息
        //流程部部管理员
        Route::match( [ 'get','post' ],"productDetail/{id}",[ 'as' => 'management.process.productDetail','uses' => $controller . 'productDetail' ] );//流程部部管理员产品详情

        //流程部部管理员删除文件
        Route::match( [ 'get','post' ],"deleteFile",[ 'as' => 'management.process.deleteFile','uses' => $controller . 'deleteFile' ] );//流程部部管理员删除文件

        //流程部部管理员上传文件
        Route::match( [ 'get','post' ],"uploadFile",[ 'as' => 'management.process.uploadFile','uses' => $controller . 'uploadFile' ] );//流程部部管理员删除文件

        //流程部部管理员上传名称文件
        Route::match( [ 'get','post' ],"uploadNamePicFile",[ 'as' => 'management.process.uploadNamePicFile','uses' => $controller . 'uploadNamePicFile' ] );//流程部部管理员删除文件

        //流程部部管理员下载文件
        Route::match( [ 'get','post' ],"doloadFile",[ 'as' => 'management.process.doloadFile','uses' => $controller . 'doloadFile' ] );//流程部部管理员删除文件

        //流程部部管理员下载报件资料文件
        Route::match( [ 'get','post' ],"downloadFile",[ 'as' => 'management.process.downloadFile','uses' => $controller . 'downloadFile' ] );//流程部部管理员删除文件


    } );
    //项目部
    Route::group( [ 'prefix' => 'project' ],function (){
        $controller = 'DepartmentManagement\ProjectManagementController@';
        //项目部部管理员登录
        Route::match( [ 'get','post' ],"login",[ 'as' => 'management.project.login','uses' => $controller . 'login' ] );
        //项目部部管理员登录
        Route::match( [ 'get','post' ],"loginOut",[ 'as' => 'management.project.loginOut','uses' => $controller . 'loginOut' ] );


        //登陆逻辑
        Route::match( [ 'get','post' ],"doLogin",[ 'as' => 'management.project.doLogin','uses' => $controller . 'doLogin' ] );
        //项目部部管理员修改密码逻辑
        Route::match( [ 'get','post' ],"changePassword",[ 'as' => 'management.project.changePassword','uses' => $controller . 'changePassword' ] );

        //项目部部管理员修改密码
        Route::match( [ 'get','post' ],"doChangePassword",[ 'as' => 'management.project.doChangePassword','uses' => $controller . 'doChangePassword' ] );//项目部部管理员修改密码

        //项目部部管理员首页
        Route::match( [ 'get','post' ],"index",[ 'as' => 'management.project.index','uses' => $controller . 'index' ] );
        //项目部部管理员首页搜索
        Route::match( [ 'get','post' ],"certainSearch",[ 'as' => 'management.project.certainSearch','uses' => $controller . 'certainSearch' ] );
        //项目部多条件精确搜索
        Route::match( [ 'get','post' ],"projectCertainSearch",[ 'as' => 'management.project.certainSearch','uses' => $controller . 'projectCertainSearch' ] );
        //项目部部管理员页面任务中心
        Route::match( [ 'get','post' ],"claimCenter",[ 'as' => 'management.project.claimCenter','uses' => $controller . 'claimCenter' ] );
        //项目部部管理员搜索页面任务中心
        Route::match( [ 'get','post' ],"claimCenterSearch",[ 'as' => 'management.project.claimCenterSearch','uses' => $controller . 'claimCenterSearch' ] );
        //项目部部管理员用户信息
        Route::match( [ 'get','post' ],"userInfo",[ 'as' => 'management.project.userInfo','uses' => $controller . 'userInfo' ] );//项目部部管理员用户信息

        //项目部部管理员认领任务
        Route::match( [ 'get','post' ],"toClaim",[ 'as' => 'management.project.toClaim','uses' => $controller . 'toClaim' ] );//项目部部管理员用户信息

        //项目部部管理员更新进度
        Route::match( [ 'get','post' ],"updateProgress",[ 'as' => 'management.project.updateProgress','uses' => $controller . 'updateProgress' ] );//项目部部管理员用户信息
        //项目部部管理员
        Route::match( [ 'get','post' ],"productDetail",[ 'as' => 'management.project.productDetail','uses' => $controller . 'productDetail' ] );//项目部部管理员产品详情

        //项目部部管理员删除文件
        Route::match( [ 'get','post' ],"deleteFile",[ 'as' => 'management.project.deleteFile','uses' => $controller . 'deleteFile' ] );//项目部部管理员删除文件

        //项目部部管理员上传文件
        Route::match( [ 'get','post' ],"uploadFile",[ 'as' => 'management.project.uploadFile','uses' => $controller . 'uploadFile' ] );//流程部部管理员删除文件


        //项目部部管理员下载官方文件
        Route::match( [ 'get','post' ],"doloadFile",[ 'as' => 'management.project.doloadFile','uses' => $controller . 'doloadFile' ] );//流程部部管理员删除文件


        //项目部部管理员下载报件资料文件
        Route::match( [ 'get','post' ],"downloadFile",[ 'as' => 'management.project.downloadFile','uses' => $controller . 'downloadFile' ] );//流程部部管理员删除文件
    } );


    //产品交易部
    Route::group( [ 'prefix' => 'productsTrading' ],function (){
        $controller = 'DepartmentManagement\ProductsManagementController@';
        //产品交易部管理员登录
        Route::match( [ 'get','post' ],"login",[ 'as' => 'management.productsTrading.login','uses' => $controller . 'login' ] );
        //登陆逻辑
        Route::match( [ 'get','post' ],"doLogin",[ 'as' => 'management.productsTrading.doLogin','uses' => $controller . 'doLogin' ] );
        //ip交易出售界面
        Route::match( [ 'get','post' ],"IpSell",[ 'as' => 'management.productsTrading.IpSell','uses' =>$controller. 'IpSell' ] );
        //ip交易出售多条件精确搜索
        Route::match( [ 'get','post' ],"IpSellCertain",[ 'uses' => $controller. 'IpSellCertain' ] );
        //ip交易出售进度修改
        Route::match( [ 'get','post' ],"IpSellProgress",[ 'uses' => $controller. 'IpSellProgress' ] );
        //ip交易管理员登出
        Route::match( [ 'get','post' ],"loginOut",[ 'uses' => $controller. 'loginOut' ] );
    } );

} );


Route::get( 'business-department/business-login',function (){
    return view( 'business-department/business-login' );
} );
Route::get( 'business-department/business-index',function (){
    return view( 'business-department/business-index' );
} );
Route::get( 'business-department/business-claim',function (){
    return view( 'business-department/business-claim' );
} );
Route::get( 'business-department/business-application-notice',function (){
    return view( 'business-department/business-application-notice' );
} );
Route::get( 'business-department/user-info',function (){
    return view( 'business-department/user-info' );
} );
Route::get( 'business-department/change-password',function (){
    return view( 'business-department/change-password' );
} );
Route::get( 'finance-department/finance-index',function (){
    return view( 'finance-department/finance-index' );
} );
Route::get( 'finance-department/finance-login',function (){
    return view( 'finance-department/finance-login' );
} );
Route::get( 'finance-department/user-info',function (){
    return view( 'finance-department/user-info' );
} );
Route::get( 'finance-department/change-password',function (){
    return view( 'finance-department/change-password' );
} );

//管理员模块
Route::group( [ 'prefix' => 'Admin' ],function (){
    //后台管理员审核用户信息模块
    Route::group( [ 'prefix' => 'admin-examine' ],function (){
        $adminModel   = 'Admin\\';
        $AdminExamine = 'AdminExamineController@';
        //后台审核管理员登陆界面
        Route::match( [ 'get','post' ],"adminExamineLogin",[ 'uses' => $adminModel . $AdminExamine . 'login' ] );
        Route::match( [ 'get','post' ],"adminExamineLoginOut",[ 'uses' => $adminModel . $AdminExamine . 'loginOut' ] );
        Route::match( [ 'get','post' ],"adminExamineDoLogin",[ 'uses' => $adminModel . $AdminExamine . 'doLogin' ] );
        Route::match( [ 'get','post' ],"adminExamineHome",[ 'uses' => $adminModel . $AdminExamine . 'index' ] );
        Route::match( [ 'get','post' ],"adminExamineReview/{id}/{type}",[ 'uses' => $adminModel . $AdminExamine . 'review' ] );
        Route::match( [ 'get','post' ],"adminExamineDel/{id}",[ 'uses' => $adminModel . $AdminExamine . 'delete' ] );
    } );
    //后台总管理员模块
    Route::group( [ 'prefix' => 'generalAdmin' ],function (){
        $adminModel   = 'Admin\\';
        $GeneralAdmin = 'GeneralAdminController@';
        //后台总管理员登陆界面
        Route::match( [ 'get','post' ],"login",[ 'uses' => $adminModel . $GeneralAdmin . 'login' ] );
        Route::match( [ 'get','post' ],"doLogin",[ 'uses' => $adminModel . $GeneralAdmin . 'doLogin' ] );
        Route::match( [ 'get','post' ],"loginOut",[ 'uses' => $adminModel . $GeneralAdmin . 'loginOut' ] );
        Route::match( [ 'get','post' ],"index",[ 'uses' => $adminModel . $GeneralAdmin . 'index' ] );
        Route::match( [ 'get','post' ],"ajxZip",[ 'uses' => $adminModel . $GeneralAdmin . 'ajxZip' ] );
        Route::match( [ 'get','post' ],"trademark",[ 'uses' => $adminModel . $GeneralAdmin . 'trademark' ] );
        Route::match( [ 'get','post' ],"trademarkSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'trademarkSearch' ] );
       //商标多条件筛选
        Route::match( [ 'get','post' ],"trademarkCertainSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'trademarkCertainSearch' ] );

        Route::match( [ 'get','post' ],"detail/{id}",[ 'uses' => $adminModel . $GeneralAdmin . 'detail' ] );
        Route::match( [ 'get','post' ],"patent",[ 'uses' => $adminModel . $GeneralAdmin . 'patent' ] );
        Route::match( [ 'get','post' ],"patentSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'patentSearch' ] );
       //专利多条件筛选
        Route::match( [ 'get','post' ],"patentCertainSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'patentCertainSearch' ] );

        Route::match( [ 'get','post' ],"copyright",[ 'uses' => $adminModel . $GeneralAdmin . 'copyright' ] );
        Route::match( [ 'get','post' ],"copyrightSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'copyrightSearch' ] );

        Route::match( [ 'get','post' ],"copyrightCertainSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'copyrightCertainSearch' ] );
        Route::match( [ 'get','post' ],"staff",[ 'uses' => $adminModel . $GeneralAdmin . 'staff' ] );
        Route::match( [ 'get','post' ],"staffSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'staffSearch' ] );
       //员工管理模块多条件搜索
        Route::match( [ 'get','post' ],"staffCertainSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'staffCertainSearch' ] );
        Route::match( [ 'get','post' ],"add_staff",[ 'uses' => $adminModel . $GeneralAdmin . 'add_staff' ] );
        Route::match( [ 'get','post' ],"del_staff/{id}",[ 'uses' => $adminModel . $GeneralAdmin . 'del_staff' ] );
        Route::match( [ 'get','post' ],"reset_pwd/{id}",[ 'uses' => $adminModel . $GeneralAdmin . 'reset_pwd' ] );
        Route::match( [ 'get','post' ],"edit_staff",[ 'uses' => $adminModel . $GeneralAdmin . 'edit_staff' ] );
        Route::match( [ 'get','post' ],"project",[ 'uses' => $adminModel . $GeneralAdmin . 'project' ] );
        Route::match( [ 'get','post' ],"projectSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'projectSearch' ] );
       //我的项目多条件搜索
        Route::match( [ 'get','post' ],"projectCertainSearch",[ 'uses' => $adminModel . $GeneralAdmin . 'projectCertainSearch' ] );

        Route::match( [ 'get','post' ],"getSalesAnalysis",[ 'uses' => $adminModel . $GeneralAdmin . 'getSalesAnalysis' ] );
      //ip交易出售界面
        Route::match( [ 'get','post' ],"IpSell",[ 'uses' => $adminModel . $GeneralAdmin . 'IpSell' ] );
       //ip交易出售多条件精确搜索
        Route::match( [ 'get','post' ],"IpSellCertain",[ 'uses' => $adminModel . $GeneralAdmin . 'IpSellCertain' ] );
       //ip交易出售进度修改
        Route::match( [ 'get','post' ],"IpSellProgress",[ 'uses' => $adminModel . $GeneralAdmin . 'IpSellProgress' ] );


    } );


    //后台总管理员模块
    Route::group( [ 'prefix' => 'couponsAdmin' ],function (){
        $adminModel   = 'Admin\\';
        $CouponsAdmin = 'CouponsAdminController@';
        //后台总管理员登陆界面
        Route::match( [ 'get','post' ],"login",[ 'uses' => $adminModel . $CouponsAdmin . 'login' ] );
        Route::match( [ 'get','post' ],"doLogin",[ 'uses' => $adminModel . $CouponsAdmin . 'doLogin' ] );
        Route::match( [ 'get','post' ],"loginOut",[ 'uses' => $adminModel . $CouponsAdmin . 'loginOut' ] );
        Route::match( [ 'get','post' ],"index",[ 'uses' => $adminModel . $CouponsAdmin . 'index' ] );

        Route::match( [ 'get','post' ],"addCoupons",[ 'uses' => $adminModel . $CouponsAdmin . 'addCoupons' ] );

        Route::match( [ 'get','post' ],"submitAudit/{id}",[ 'uses' => $adminModel . $CouponsAdmin . 'submitAudit' ] );


        Route::match( [ 'get','post' ],"editCoupons",[ 'uses' => $adminModel . $CouponsAdmin . 'editCoupons' ] );


    } );


    //后台总管理员模块
    Route::group( [ 'prefix' => 'couponsAudit' ],function (){
        $adminModel   = 'Admin\\';
        $CouponsAudit = 'CouponsAuditController@';
        //后台总管理员登陆界面
        Route::match( [ 'get','post' ],"login",[ 'uses' => $adminModel . $CouponsAudit . 'login' ] );
        Route::match( [ 'get','post' ],"doLogin",[ 'uses' => $adminModel . $CouponsAudit . 'doLogin' ] );
        Route::match( [ 'get','post' ],"loginOut",[ 'uses' => $adminModel . $CouponsAudit . 'loginOut' ] );
        Route::match( [ 'get','post' ],"index",[ 'uses' => $adminModel . $CouponsAudit . 'index' ] );

        Route::match( [ 'get','post' ],"change/{id}",[ 'uses' => $adminModel . $CouponsAudit . 'change' ] );
        Route::match( [ 'get','post' ],"pass/{id}",[ 'uses' => $adminModel . $CouponsAudit . 'pass' ] );


    } );


} );


Route::group( [ 'prefix' => 'WeChat','middleware' => [ 'web','wechat.oauth' ] ],function (){
    $Model      = "WeChat\\";
    $controller = "WechatController@";
    Route::group( [ 'prefix' => 'wechatService' ],function (){
        $Model      = "WeChat\\";
        $controller = "WechatController@";
        //
        Route::match( [ 'get','post' ],"serve",[ 'as' => 'WeChat.wechatService.serve','uses' => $Model . $controller . "serve" ] );

        Route::match( [ 'get','post' ],"updateProgressNotice/{id}",[ 'middleware' => [ 'except' => [ 'wechat.oauth' ] ],'as' => 'WeChat.wechatService.updateProgressNotice','uses' => $Model . $controller . "updateProgressNotice" ] );

        Route::match( [ 'get','post' ],"bindAccount",[ 'as' => 'WeChat.wechatService.bindAccount','uses' => $Model . $controller . "bindAccount" ] );

        Route::match( [ 'get','post' ],"login",[ 'as' => 'WeChat.wechatService.login','uses' => $Model . $controller . "login" ] );

        Route::match( [ 'get','post' ],"unbind",[ 'as' => 'WeChat.wechatService.unbind','uses' => $Model . $controller . "unbind" ] );

        Route::match( [ 'get','post' ],"doUnbind",[ 'as' => 'WeChat.wechatService.doUnbind','uses' => $Model . $controller . "doUnbind" ] );

        Route::match( [ 'get','post' ],"weChat_detail",[ 'as' => 'WeChat.wechatService.weChat_detail','uses' => $Model . $controller . "weChat_detail" ] );

    } );


} );
Route::match( [ 'get','post' ],"WeChat/wechatService/updateProgressNotice/{id}",[ 'as' => 'WeChat.wechatService.updateProgressNotice','uses' => "WeChat\WechatController@updateProgressNotice" ] );

//Route::match(['get', 'post'], "WeChat/wechatService/login", ['as' => 'WeChat.wechatService.login' ,'uses' => "WeChat\WechatController@login"]);
